package org.jeecg.modules.oms.service;

import org.jeecg.modules.oms.entity.OmsInquiry;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 询单表
 * @Author: jeecg-boot
 * @Date: 2025-09-29
 * @Version: V1.0
 */
public interface IOmsInquiryService extends IService<OmsInquiry> {

    /**
     * 保存询单及明细
     * @param inquiry 询单信息
     * @return 是否成功
     */
    boolean saveInquiryWithItems(OmsInquiry inquiry);

    /**
     * 更新询单及明细
     * @param inquiry 询单信息
     * @return 是否成功
     */
    boolean updateInquiryWithItems(OmsInquiry inquiry);

    /**
     * 删除询单及明细
     * @param id 询单ID
     * @return 是否成功
     */
    boolean deleteInquiryWithItems(String id);

}
